package com.icecola.d3_thread_safe;

public class DrawThread extends Thread{
    private String name;
    private Account acc;

    public DrawThread(String name,Account acc) {
        super(name);
        this.name = name;
        this.acc = acc;
    }

    @Override
    public void run() {
        //取钱
        acc.drawMoney(100000);
    }

}
